package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 备品出入库对象 tb_stock_log
 * 
 * @author codeman
 * @date 2024-05-04
 */
public class TbStockLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 物品类型 */
    @Excel(name = "物品类型")
    private String itemType;

    /** 物品ID（对应tb_feed_info, tb_medicine_info, tb_vaccine_info的ID） */
    @Excel(name = "物品ID", readConverterExp = "对=应tb_feed_info,,t=b_medicine_info,,t=b_vaccine_info的ID")
    private Long itemId;

    /** 操作类型（入库/出库） */
    @Excel(name = "操作类型", readConverterExp = "入=库/出库")
    private String operationType;

    /** 数量（正数表示入库，负数表示出库） */
    @Excel(name = "数量", readConverterExp = "正=数表示入库，负数表示出库")
    private BigDecimal quantity;

    /** 操作员 */
    @Excel(name = "操作员")
    private String operator;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemType(String itemType) 
    {
        this.itemType = itemType;
    }

    public String getItemType() 
    {
        return itemType;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemType", getItemType())
            .append("itemId", getItemId())
            .append("operationType", getOperationType())
            .append("quantity", getQuantity())
            .append("operator", getOperator())
            .append("operationTime", getOperationTime())
            .append("remark", getRemark())
            .toString();
    }
}
